//
//  YSScrollLabel.h
//  YSKitExample
//
//  Created by Kyson on 2017/6/16.
//  Copyright © 2017年 YangShen. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, YSScrollDirection) {
    YSScrollDirectionHorizontal,
    YSScrollDirectionVertical
};

@interface YSScrollLabel : UIScrollView

@property (nonatomic, copy  ) NSString *text;
@property (nonatomic, strong) UIFont   *font;
@property (nonatomic, strong) UIColor  *textColor;

/// 内间距
@property (nonatomic, assign) UIEdgeInsets labelInset;

/// 滚动方向
@property (nonatomic, assign) YSScrollDirection direction;

/// 暂未有效
@property (nonatomic, copy)   NSAttributedString *attributedText;

/// 滚动速率([0, 10]), 单位秒s
@property (assign, nonatomic) NSTimeInterval scrollVelocity;

/// 每次循环滚动的间距
@property (assign, nonatomic) CGFloat scrollSpace;

/// 开始滚动
- (void)beginScrolling;
/// 取消滚动
- (void)endScrolling;
/// 暂停滚动
- (void)pauseScrolling;

@end
